package com.pti.usermanager.service.api;

import com.github.pagehelper.PageInfo;
import com.pti.usermanager.dao.po.UserPo;
import com.pti.usermanager.web.dto.request.DeleteUserRequest;
import com.pti.usermanager.web.dto.request.SaveUserRequest;
import com.pti.usermanager.web.dto.request.UpdateUserRequest;
import com.pti.usermanager.web.dto.response.ResultResponse;

/**
 * @ClassName: UserService
 * @Author: liumengyao
 * @Description: 用户业务层
 * @Date: 2019/1/16
 */
public interface UserService {

    /**分页模糊查询用户*/
    PageInfo<UserPo> findAll(String loginNm,String usrNm,Integer page,Integer pageSize);
    /**根据用户id查询用户*/
    ResultResponse findAllByUsrId(Long usrId);
    /**保存用户*/
    ResultResponse saveUser(SaveUserRequest saveUserRequest);
    /**修改用户*/
    ResultResponse updateUser(UpdateUserRequest updateUserRequest);
    /**删除用户*/
    ResultResponse delUser(DeleteUserRequest deleteUserRequest);


}
